package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.app.param.OrderParam;
import com.yami.shop.bean.dto.ShopDetailSalesDto;
import com.yami.shop.bean.model.CheckAccount;
import com.yami.shop.bean.model.Order;

public interface CheckAccountService extends IService<CheckAccount> {
    /**
     * 根据订单编号查询订单详情
     */
    Order getOrderDetailBynumber(String orderNumber);

    CheckAccount getByOrderNumber(String orderNumber);

    /**
     * 根据页面查询条件查询出对于对应的结果
     */
    IPage<CheckAccount> pageCheckAccountByOrderParam(Page<CheckAccount> page,CheckAccount checkAccount);

    /**
     * 查询所有订单的返现金额
     */
    Double getRebateMoneyAmount();

    /**
     * 查询店铺的成交金额
     */
    Double getShopBusinessVolume(Long shopId);

    /**
     * 根据时间段查询店铺的成交额
     */
    Double getShopBusinessVolumeByTime(ShopDetailSalesDto shopDetailSalesDto,Long shopId);

    /**
     * 入账对应时间段的订单,增加商户的可提现余额
     */
    void dealOrderByTime(Order order);


}
